module.exports = {
  title: '云裳信息化平台',

  /**
   * @type {boolean} true | false
   * @description Whether show the settings right-panel
   */
  showSettings: true,

  /**
   * @type {boolean} true | false
   * @description Whether need tagsView
   */
  tagsView: true,

  /**
   * @type {boolean} true | false
   * @description Whether fix the header
   */
  fixedHeader: false,

  /**
   * @type {boolean} true | false
   * @description Whether show the logo in sidebar
   */
  sidebarLogo: false,

  /**
   * @type {string | array} 'production' | ['production', 'development']
   * @description Need show err logs component.
   * The default is only used in the production env
   * If you want to also use it in dev, you can pass ['production', 'development']
   */
  errorLog: 'production',

  /**
   * @type {Array} [number]
   * @description 配置数据列表以及分页器的一些配置信息
   */
  tablePaginationSizes: [10, 50, 100, 200],
  defaultTablePaginationSize: 10,
  tablePaginationLayout: 'total, sizes, prev, pager, next, jumper',
  tableHeaderStyle: { background: '#F8FAFB', color: '#999999', fontWeight: '400' },
  tableHeight: 720,

  /**
   * 菜单管理：菜单类型
   */
  menuTypeList: [
    { name: '目录', value: 'M' },
    { name: '菜单', value: 'C' },
    { name: '按钮', value: 'F' }
  ],
  /**
   * 正则验证表达式
   * @description 顺序改变会影响模块代码中的调用
   */
  expression: [
    { name: 'codeAndNumber', value: /^[a-zA-Z0-9]+$/ },
    { name: 'mobilePhone', value: /^(13[0-9]|14[01456879]|15[0-3,5-9]|16[2567]|17[0-8]|18[0-9]|19[0-3,5-9])\d{8}$/ },
    { name: 'simplePassword', value: /^[A-Za-z0-9]{6,16}$/ },
    { name: 'inputName', value: /^[A-Za-z0-9\u4e00-\u9fa5]+$/ }, // 中英文汉字
    { name: 'specialChar', value: /[^\u4e00-\u9fa5\w]/ }, // 特殊字符
    { name: 'telPhone', value: /^\d{3}-\d{7,8}|\d{4}-\d{7,8}$/ }, // 座机
    { name: 'bankCard', value: /^([1-9]{1})(\d{14}|\d{18})$/ }, // 银行卡
    { name: 'userCard', value: /^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/ }, // 身份证
  ]
}
